POV-Ray : Newsgroups : povray.general : Q: Your scripting style : Q: Your scripting style Server Time
8 Aug 2024 06:19:40 EDT (-0400)
  Q: Your scripting style  
From: Marc-Hendrik Bremer
Date: 12 Feb 2001 07:54:01
Message: <3a87dce9@news.povray.org>
Hi,

I would like to know, how you manage to keep track of the things in your
more complex scenes, 'cause I've problems with this.

I try to indent properly most of the time and that helps a lot to understand
what happens within one object or an CSG. But when it comes to declared
functions, predefined textures and objects, it becomes a lot more difficult.
I group these things by there categories, i.e. functions in one block marked
with comments at the beginning and the end, objects in another block, whole
parts of the scene in a third block and the scene at the very end. I put the
global_settings, lights, camera and background/sky most of the time at the
very beginning of the file.

That works, but I find myself often scrolling about large parts of the
scene, cause if I have to change the length of an iso-wood-beam, I have to
change the rbox-function, too and so on. But if I group this function with
the isosurface declaration, I break my block-scheme and it will probably be
much harder to use the same function elsewhere.

So, how are you doing these things?

Marc-Hendrik


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.